<?php
/**
 * 生成静态-设置头条新闻时更新相关列表
 * @final
 */
class Staticizer_Apps_News_Event_Headline extends Staticizer
{
    public function Build($param=NULL)
    {
        if(!$param){
            return FALSE;
        }

        #获取数据
        $data=$param;


        #首页
        //头条新闻
        if($data['M_IsHeadline']){
            StaticizerFactory::Create('index.headline')->Build();
        }


        #资讯模块-首页
        //头条新闻
        if($data['M_IsHeadline']){
            StaticizerFactory::Create('news.index_headline')->Build();
        }
    }
}
?>